package org.example.seckill.consumer;

import org.example.seckill.dao.OrderMapper;
import org.example.seckill.dao.pojo.Order;
import org.example.seckill.service.OrderService;
import org.example.seckill.service.SeckillService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MqConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(MqConsumerApplication.class, args);
    }

    @Bean
    public SeckillService getSeckillService() {
        return new SeckillService();
    }

    @Bean
    public OrderService getOrderService() {
        return new OrderService();
    }
}
